package io.nutz.nutzsite.module.exam.services;

import io.nutz.nutzsite.common.base.Service;
import io.nutz.nutzsite.common.utils.StringUtils;
import io.nutz.nutzsite.module.exam.models.Exarrange2;
import org.nutz.dao.Dao;
import org.nutz.dao.Sqls;
import org.nutz.ioc.loader.annotation.IocBean;

/**
 * 排考抽题 服务层实现
 *
 *
 * @author lrw
 * @date 2020-04-08
 */
@IocBean(args = {"refer:dao"})
public class Exarrange2Service extends Service<Exarrange2> {
	public Exarrange2Service(Dao dao) {
		super(dao);
	}
	
	public String queryRoleUser(String roles){
		return StringUtils.getSeqRowValue2(this.dao(),Sqls.create("select user_id from sys_user_role where role_id in "+StringUtils.StringToString2(roles)));
		//List<String> uids= StringUtils.getStrsRowValues(this.dao(),Sqls.create("select user_id from sys_user_role where role_id in "+StringUtils.StringTolist( roles)));
		//List<Userrole> userroles=this.dao().query(Userrole.class, Cnd.where("role_id","in",StringUtils.StringTolist( roles)));
		//return uids;
	}
	
}
